const style = {
  position: function (param) {
    let data = "";
    param = param || {};
    //宽度
    if (param.width !== undefined) {
      data += `width:${param.width}rpx;`;
    }
    if (param.height !== undefined) {
      data += `height:${param.height}rpx;`;
    }
    if (param.left !== undefined) {
      data += `left:${param.left}rpx;`;
    }
    if (param.right !== undefined) {
      data += `right:${param.right}rpx;`;
    }
    if (param.top !== undefined) {
      data += `top:${param.top}rpx;`;
    }
    if (param.bottom !== undefined) {
      data += `bottom:${param.bottom}rpx;`;
    }
    if (param.color !== undefined) {
      data += `color:${param.color};`;
    }
    if (param.border !== undefined) {
      data += `border:${param.border};`;
    }
    if (param.size !== undefined) {
      data += `font-size:${param.size}rpx;`;
    }
    if (param.family !== undefined) {
      data += `font-family:${param.family};`;
    }
    if (param.marginBottom !== undefined) {
      data += `margin-bottom:${param.marginBottom}rpx;`;
    }
    if (param.marginRight !== undefined) {
      data += `margin-right:${param.marginRight}rpx;`;
    }
    if (param.marginLeft !== undefined) {
      data += `margin-left:${param.marginLeft}rpx;`;
    }
    if (param.marginTop !== undefined) {
      data += `margin-top:${param.marginTop}rpx;`;
    }
    if (param.BC !== undefined) {
      data += `background:${param.BC};`;
    }
    if (param.radius !== undefined) {
      data += `border-radius:${param.radius}rpx;`;
    }
    if (param.padding !== undefined) {
      data += `padding:${param.padding};`;
    }
    if (param.margin !== undefined) {
      data += `margin:${param.margin};`;
    }
    if (param.letter !== undefined) {
      data += `letter-spacing:${param.letter}rpx;`;
    }
    if (param.align !== undefined) {
      data += `text-align:${param.align};`;
    }
    if (param.opacity !== undefined) {
      data += `opacity:${param.opacity};`;
    }
    if (param.topVh !== undefined) {
      data += `top:${param.topVh}vh;`;
    }




    return data;
  }
}

export default {
  style
}
